# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-o2em
pkgver=0_git20200203
pkgrel=0
_commit="b23a796dd3490e979ff43710317df6d43bd661e1"
pkgdesc="port of O2EM to the libretro API, an Odyssey 2 / VideoPac emulator"
url="https://github.com/libretro/libretro-o2em"
arch="all"
license="Artistic-2.0"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/libretro-o2em/archive/$_commit.tar.gz"
builddir="$srcdir/libretro-o2em-$_commit"
options="!check" # No tests

build() {
	make
}

package() {
	install -Dm644 o2em_libretro.so "$pkgdir"/usr/lib/libretro/o2em_libretro.so
}

sha512sums="474342d2a5599f27940f7ba847187d2328ed5e8d1318388b4c636157d9787ab79e2b3669d0bbbf2d0c8a15e6fc8b424197097fca27f37bcf5aff7a83962c59a9  libretro-o2em-b23a796dd3490e979ff43710317df6d43bd661e1.tar.gz"
